package com.database.service;

import com.database.character.UserAccount;
import org.apache.ibatis.annotations.Delete;

import java.util.List;

public interface UserService {

  //登录
  UserAccount login(UserAccount userAccount);

  //新增用户
  int addUser(UserAccount userAccount);

  //修改用户
  int updateUser(UserAccount userAccount);

  //删除用户
  int deleteUserByUid(Integer userId);

  //查询所有用户
  List<UserAccount> list();

  //根据userId查询用户
  UserAccount getByUid(Integer userId);

  //根据nickname查询用户
  UserAccount getByNickname(String nickname);

}
